<template>
  <div>
    <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000" route>
      <van-tabbar-item to='/home' icon="wap-home-o">商城</van-tabbar-item>
      <van-tabbar-item to='/sort' icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to='/cart' icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item to='/mine' icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="" scoped>
.van-tabbar{
  box-shadow: 0 -5px 10px 0 rgba(204,204,204,0.20), 0 0 0 0 #CCC;
}
</style>